<?php
/**
 * ShopProductWrite 类 负责写入数据
 * @package ShopProductWrite
 * @author Adair
 */

class ShopProductWrite{
	//write()方法只接受包含ShopProduct1对象 的$shopProduct 参数。
	//public function write(ShopProduct1 $shopProduct)
	public function write( $shopProduct)
	{
		$str = "{$shopProduct->title}: ".
		//$shopProduct->getProducer().
		"({$shopProduct->price})</BR>";
		print $str;
	}
}


